const userName = 'kk'
const age = '18'
//向module.exports对象上挂载userName属性和seyHi方法
module.exports.userName = userName
module.exports.sayHi = function () {
    console.log('Hi! my name is', userName)
}

//module.exports指向全新的对象
module.exports = {
    nickName: '莉莉',
    age: '20',
    sayHello() {
        console.log('Hello')
    },
}
